package org.jeecg.modules.analysisachievement.dataEffectiveness.controller;

import javax.servlet.http.HttpServletRequest;

import com.alibaba.fastjson.JSONObject;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.api.ISysBaseAPI;
import org.jeecg.modules.analysisachievement.dataEffectiveness.service.IDataEffectivenessMapperService;
import org.jeecg.modules.common.api.ISysInfo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.extern.slf4j.Slf4j;

import org.jeecg.modules.classes.service.ICouClassService;
import org.jeecg.modules.common.utils.DateUtil;
import org.jeecg.modules.student.service.IStuStudentService;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;

 /**
 * @Description: ach_achievement_exam
 * @author: baochangrong
 * @Date:   2022-05-28
 * @Version: V1.0
 */
@Api(tags="dataEffectiveness")
@RestController
@RequestMapping("/dataEffectiveness/queryApi")
@Slf4j
public class DataEffectivenessController extends JeecgController<JSONObject, IDataEffectivenessMapperService> {
	@Autowired
	private IDataEffectivenessMapperService dataEffectivenessMapperService;
	 @Autowired
	 private ISysBaseAPI sysBaseAPI;
	 @Autowired
	 private ISysInfo sysInfo;
	 @Autowired
	 private IStuStudentService stuStudentService;
	 @Autowired
	 private ICouClassService couClassService;
	/**
	 * 校验数据
	 *
	 * @param
	 * @return
	 */
	@AutoLog(value = "dataEffectiveness-数据有效性检查接口")
	@ApiOperation(value="DataEffectiveness-数据有效性检查接口", notes="数据有效性检查接口")
	@GetMapping(value = "/list")
	public Result<?> queryPageList( @RequestParam(name="yearCode",required = false) Integer yearCode,
									@RequestParam(name="yearCodeLast",required = false) Integer yearCodeLast
									) {
		JSONObject paramJson = new JSONObject();
		paramJson.put("yearCode",yearCode);
		paramJson.put("yearCodeLast",yearCodeLast);
		JSONObject pageJson = dataEffectivenessMapperService.queryDataCheck(paramJson);
		return Result.OK(pageJson);
	}

}
